package com.springboot.biz.impl;

import com.springboot.biz.NoteBiz;
import com.springboot.dao.NoteDao;
import com.springboot.entity.Note;
import com.springboot.util.AppHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class NoteBizImpl implements NoteBiz {

	@Resource
	private NoteDao noteDao;

	@Override
	public void insertNote(Note note) {
		noteDao.insertNote(note);
	}

	@Override
	public List<Note> findListNote(int pipeID) {
		Map<String, Object> map = AppHelper.getMap("pipeID", pipeID);
		return noteDao.findListNote(map);
	}
}
